fn main() {

    let mut s = String::from("Hello world");

    // 截取字符串
    let s1 = &s[0..5];
    println!("{}", s1);

    // 用分隔符切割成数组
    let arr: Vec<&str> = s.split(" ").collect();
    println!("{:?}", arr);
}